import React from 'react';
import { Button, Carousel } from 'antd-mobile';
import HealthItem from './HealthItem.jsx'
import './messageAuto.css'
const dataSource = [
    {
        id: 1,
        title: '震惊，冬天吃它如吃毒药',
        img: ''
    },
    {
        id: 2,
        title: '震惊，夏天吃它像吃人参',
        img: ''
    },
    {
        id: 2,
        title: '震惊，这样做会致癌，99%的人不知道',
        img: ''
    }
]
class HealthList extends React.Component {    
    render() {
        let items = dataSource.map( (val, index) => {
            return <HealthItem key={index} healthArticle={val.title}/>
        });
        return (
            <div className="healthlist-wrap">
                {items}
            </div>
        )
    }
}

//导出组件；
export default HealthList;
